rendernodeparser: Default color to black
authorBenjamin Otte <otte@redhat.com>
Sun, 12 May 2019 14:01:15 +0000 (16:01 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 12 May 2019 15:28:19 +0000 (17:28 +0200)
Nobody wants to render transparent text.

gsk/gskrendernodeparser.c

index 06b2b183c78c16877b22b557dac031f02f4eb48a..234ef487a44e4814d5ae8779e5aa8c9aaa90d382 100644 (file)
@@ -942,7 +942,7 @@ parse_text_node (GtkCssParser *parser)
   PangoFont *font = NULL;
   double x = 0;
   double y = 0;
-  GdkRGBA color = { 0, 0, 0, 0 };
+  GdkRGBA color = { 0, 0, 0, 1 };
   PangoGlyphString *glyphs = NULL;
   const Declaration declarations[] = {
     { "font", parse_font, &font },